<extend name="$_admin_public_layout"/>

<block name="style">
    <link rel="stylesheet" type="text/css" href="__LYUI__/css/lyui.extend.min.css">
    <include file="./Application/Common/Builder/style.html" />
	<style>
	.breadcrumb{display:none;}
	.breadcrumbs {
		padding: 8px 15px;
		border-radius: 0;
		margin-bottom: 0;
		background: #f8f8f8;
	}
	.breadcrumbs li {
		padding: 3px 0 2px 0;
	}
	.breadcrumbs>li, .paginations {
		display: inline-block;
	}
	</style>
</block>

<block name="script">
    <script type="text/javascript" src="__LYUI__/js/lyui.extend.min.js"></script>
    <script type="text/javascript">
 
    </script>
</block>


<block name="main">
<div class="builder listbuilder-box">
    <!-- 顶部品牌显示 -->
	<ul class="breadcrumbs">
    <li><i class="fa fa-map-marker"></i></li>
    <li class="text-muted">品牌：{$brand_name}</li>
    </ul>
	
	
	
    <!-- 顶部商品导入按钮 -->
    <div class="builder-toolbar">
        <div class="row">
            <!-- 顶部商品导入按钮 -->
               <form action="{:U('Goods/import')}" name="Forms" method="post" enctype="multipart/form-data" >
                <div class="col-xs-12 col-sm-8 button-list clearfix">
                    <div class="form-group" style="margin: 15px;">
                        商品导入：
                         <div id="_upload_2" class="btn  webuploader-container">
						
						 <input type="file" name="user_file" id="imp_file" >
						
						 <input type="hidden" name="brand_id" id="brand_id" value="{$brand_id}" />
						 </div>
			
                          <div style="margin: 15px 0;"><input type="submit" name="submit" value="立刻导入"  style="color: #fff;background-color: #2699ed;border: 0;    padding: 7px 13px;" /></div>
                    </div>
                </div>
               </form>

        </div>
    </div>

    <!-- 数据列表 -->
    <div class="builder-container">
        <div class="row">
            <div class="col-xs-12">
                <div class="builder-table">
                    <div class="panel panel-default table-responsive">
                        <table class="table table-bordered table-striped table-hover">
                            <thead>
                                <tr>
                                    <th><input class="check-all" type="checkbox"></th>
                                    <th>编号</th>
									<th>商品名称</th>
									<th>内存</th>
									<th>颜色</th>
									<th>价格</th>
									<th>操作</th>   
								</tr>
                            </thead>
                            <tbody>
                                <volist name="data_list" id="data" key="k">
                                    <tr>
                                        <td>
                                        <input class="ids" type="checkbox" value="{$data[id]}" name="ids[]">
                                        </td>
                                        <td>{$data.id}</td>
                                        <td>{$data.goods_name}</td>
                                        <td>{$data.goods_type_memory}</td>
                                        <td>{$data.shop_price}</td>
                                        <td>{$data.goods_type_colour}</td>
                                        <td>
										<a name="edit" title="编辑" class="label label-primary-outline label-pill" href="{:U('Goods/edit',array('id'=>$data['id'],'bid'=>$data['brand_id']))}">编辑</a>
										
										
										<a name="delete" title="删除" class="label label-danger-outline label-pill ajax-get confirm" model="Brand" href="{:U('Goods/delete',array('id'=>$data['id'],'bid'=>$data['brand_id']))}">删除</a>
										
										</td>
                                      
                                    </tr>
                                </volist>

                                <empty name="data_list">
                                    <tr class="builder-data-empty">
                                        
                                        <td class="text-center empty-info" colspan="7">
                                            <i class="fa fa-database"></i> 暂时没有数据<br>
                                            <!-- <span class="small">本系统由 <a href="https://www.lingyun.net" class="text-muted" target="_blank">蓝普</a>提供服务</span> -->
                                        </td>
                                    </tr>
                                </empty>
                            </tbody>
                        </table>
                    </div>

                    <notempty name="page">
                        <ul class="pagination">{$page}</ul>
                    </notempty>
                </div>
            </div>
        </div>
    </div>

    <!-- 额外功能代码 -->
    {$extra_html}
</div>
</block>